﻿<%@ Page Language="C#" MasterPageFile="~/Provider/CarInsurance/Liberty_CarInsurance.master" AutoEventWireup="true" CodeFile="ViewProviderCarCoverTypeRSA.aspx.cs" Inherits="provider_CarInsurance_ViewProviderCarCoverTypeRSA" %>


<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="provider_inner">
        <h1>
            Coverage Type</h1>
        <div class="right_action">
            <asp:HyperLink runat="server" ID="lnkNewClaimInfo" NavigateUrl="~/Provider/CarInsurance/AddNewRSAInsurance.aspx"
                Text="New"></asp:HyperLink></div>
        <asp:GridView ID="gvCoverType" runat="server" AutoGenerateColumns="False" CellPadding="2" OnRowDataBound="gvCoverType_RowDataBound"
            CellSpacing="0" DataKeyNames="ProviderCarCoverTypeId,ProviderCompanyId" CssClass="progridstyle"
            DataSourceID="sqlDsProviderCarCoverType" GridLines="None" EmptyDataText="There are no data records to display." >
            <Columns>
                <asp:BoundField DataField="ProviderCarCoverTypeId" HeaderText="ProviderCarCoverTypeId"
                    InsertVisible="False" ReadOnly="True" SortExpression="ProviderCarCoverTypeId"
                    Visible="False" />
                <asp:BoundField DataField="ProviderCompanyId" HeaderText="ProviderCompanyId" ReadOnly="True"
                    SortExpression="ProviderCompanyId" Visible="False" />
                <asp:BoundField DataField="CX Cover Type" HeaderText="CX Workshop Plan" SortExpression="CX Cover Type" />
                <asp:BoundField DataField="ProviderCoverTypeDesc" HeaderText="ProviderCoverTypeDesc"
                    SortExpression="ProviderCoverTypeDesc" />
                <asp:BoundField DataField="CoverRate" HeaderText="Base Points"
                    SortExpression="CoverRate" />           
                <asp:BoundField DataField="MinPremiumAmount" HeaderText="MinPremiumAmount" SortExpression="MinPremiumAmount" />
                <asp:BoundField DataField="MaxPremiumAmount" HeaderText="MaxPremiumAmount" SortExpression="MaxPremiumAmount" />
                <asp:BoundField DataField="RefCEUserId" HeaderText="RefCEUserId" SortExpression="RefCEUserId"
                    Visible="False" />
                <asp:CheckBoxField DataField="Status" HeaderText="Status" SortExpression="Status" />
                <asp:BoundField DataField="CreatedDate" HeaderText="CreatedDate" SortExpression="CreatedDate"
                    Visible="False" />
                <asp:BoundField DataField="ModifiedDate" HeaderText="ModifiedDate" SortExpression="ModifiedDate" />
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:HyperLink ID="lnkSelect" runat="server" NavigateUrl="AddNewRSAInsurance.aspx?CXCoverTypeId={0}"
                            Text="Select"></asp:HyperLink><asp:Label ID="lblCoverID" runat="server" Text='<%# Eval("CXCoverTypeId").ToString()%>'
                                Visible="false"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <%-- <asp:HyperLinkField HeaderText="BrowserInfo" Text="Edit" Target="_self" DataNavigateUrlFormatString="AddNewLibertyInsurance.aspx?CXCoverTypeId={0}"
                    DataNavigateUrlFields="CXCoverTypeId"></asp:HyperLinkField>--%>
            </Columns>
            <FooterStyle />
            <PagerStyle />
            <SelectedRowStyle CssClass="progridover" />
            <HeaderStyle CssClass="progridheader" />
            <EditRowStyle />
            <AlternatingRowStyle CssClass="progridodd" />
            <RowStyle CssClass="progrideven" />
        </asp:GridView>
        <asp:SqlDataSource ID="sqlDsProviderCarCoverType" runat="server" ConnectionString="<%$ ConnectionStrings:CE_DBConnectionString %>"
            SelectCommand="sprocProviderCarCoverTypeSelectItemListView" SelectCommandType="StoredProcedure">
            <SelectParameters>
                <asp:SessionParameter Name="ProviderCompanyId" SessionField="ProviderCompanyId" Type="Int64" />
            </SelectParameters>
        </asp:SqlDataSource>
        <asp:ImageButton OnClientClick="javascript:return confirm('Are you sure to go back?');"
            ID="ibtBack" runat="server" ImageUrl="~/Provider/images/buttons/back1.gif" OnClick="ibtBack_Click" />
    </div>
</asp:Content>